<%@page import="java.util.UUID"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/pages/common/taglib.jsp" %>
<%
    String uuid = UUID.randomUUID().toString();
    request.setAttribute("uuid", uuid);
%>
<form id="groupGridSd_${uuid}" style="display: none;" class="box-body form-float"></form>
<form id="taskSchedulerGridSd_${uuid}" style="display: none;" class="box-body form-float"></form>
<div class="box box-primary">
<div class="row">
	<div class="col-md-4">
		<div class="box-header with-border">
			<h3 class="box-title">
			</h3>
			<div class="box-tools pull-right" id="groupGridTb_${uuid}">
			</div>
		</div>
		<div class="box-body">
			<table id="groupGrid_${uuid}" >
	   		</table>
		</div>
	</div>
	<div class="col-md-8">
		<div class="box-header with-border">
			<h3 class="box-title">
			</h3>
			<div class="box-tools pull-right" id="taskSchedulerGridTb_${uuid}">
			</div>
		</div>
		<div class="box-body">
			<table id="taskSchedulerGrid_${uuid}" >
	   		</table>
		</div>
	</div>
</div>
</div>

<script type="text/javascript">
$(function(){
	var uuid = '${uuid}';
	requirejs(['wiseMen/dataModel/QueryDefTpl'],function(QueryDefTpl){
		var groupGrid=new QueryDefTpl({
			code:"JOB_TASK_GROUP",
			searchBarType:"dialog",
			selectModel:"single",
			searchDiv:"#groupGridSd_"+uuid,//查询定义栏
			toolBarDiv:"#groupGridTb_"+uuid,//工具栏定义栏
			gridDiv:"#groupGrid_"+uuid,//grid表格
			onSelect:function(row){
				taskSchedulerGrid.search({
					GROUPID:row.ID
				});
			}
		});
		
		var taskSchedulerGrid=new QueryDefTpl({
			code:"JOB_TASK_SCHEDULER",
			searchBarType:"dialog",
			searchDiv:"#taskSchedulerGridSd_"+uuid,//查询定义栏
			toolBarDiv:"#taskSchedulerGridTb_"+uuid,//工具栏定义栏
			gridDiv:"#taskSchedulerGrid_"+uuid//grid表格
		});
	});
});
</script>